{
  "properties" : { },
  "id" : "5de779382b5a4461849971d33aaa6965",
  "script" : null,
  "groupId" : "41727bfc55b042b38e24fa2314332f8a",
  "name" : "testluckysheet",
  "createTime" : 1749213153513,
  "updateTime" : 1761722313611,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "testluckysheet",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : null,
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
import response;
import log;
let list = db.camel().table("d_channels").select();

let title = list.get(0).keySet();

var rows =  list.map((item)=> [item.localChannelId,item.channelId]);

return response.ftl({
    data:[ title ,...rows]::stringify
},"/test/luckysheet");   
